<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="templates/style.css" type="text/css" media="all" />
<title>康腾实践中心暑期实践提交系统 - Powered by 康腾实践中心技术部</title>
</head>

<body>
<script type="text/javascript" language="javascript" >
function $(id) {
	return document.getElementById(id);
}

var lv = false;
function checkform() {
	if ($('school') && $('school').value == "") {
		alert("请输入您的院系.");
		return false;
	}
	if ($('team') && $('team').value == "")	{
		alert("请输入您的队伍名.");
		return false;
	}
	if ($('teammaster') && $('teammaster').value == "")	{
		alert("请输入您队伍的队长名.");
		return false;
	}
	if ($('project') && $('project').value == "")	{
		alert("请输入您的实践项目名称.");
		return false;
	}
	if ($('level') && $('level').value == "")	{
		alert("请输入您的实践项目等级.");
		return false;
	}
	if ($('arrange') && $('arrange').value == "" && lv)	{
		alert("请输入您的实践项目等级,院级项目需要填写项目评级。");
		return false;
	}
	if ($('userfile') && $('userfile').value == "")	{
		alert("请选择待上传的文件.");
		return false;
	}
	if ($('userfile').value.substr($('userfile').value.length-4,4) != ".doc" && $('userfile').value.substr($('userfile').value.length-4,4) != "docx" && $('userfile').value.substr($('userfile').value.length-4,4) != ".pdf") {
		alert("请上传Word2003格式的文件"+$('userfile').value.substr($('userfile').value.length-3,3));
		return false;
	}		
	$('submit').disabled = true;
	return true;
}

function show() {
	lv = true;
}
function hide() {
	lv = false;
}

function tips() {
	$('tips').innerHTML = '本次上传内容为除开图片等多媒体资料的论文文档，而评奖结果取决于上交的纸质档案。请不要上传过大的文档，推荐使用电信上传。';
}
</script>
<div id="header"></div>
<div id="page">
	<form method="post" action="post.php" enctype="multipart/form-data" onsubmit="return checkform();" >
	<div class="form"><h2>院系名称：</h2><select name="school" id="school" class="formfield">
	  <option value="">-=请选择你的院系=-</option>
	  <option value="经管院">经济与管理学院</option>
	  <option value="其他院">其他学院</option>
	</select></div>
	<div class="form"><h2>队伍名称：</h2><input class="formfield" id="team" name="team" type="text" size="20" /></div>
    <div class="form"><h2>队长姓名：</h2><input class="formfield" id="teammaster" name="teammaster" type="text" size="8" /></div>
    <div class="form"><h2>实践项目名称：</h2><input class="formfield" id="project" name="project" type="text" size="20" /></div>
    <div class="form"><h2>项目奖项：</h2><select id="level" name="level" class="formfield box">
	  <option value="">=选择等级=</option>
	  <option value="院" onclick="show()">院级</option>
	  <option value="校" onclick="hide()">校级</option>
	</select><select id="arrange" name="arrange" class="formfield box">
    	<option value="">=选择奖项=</option>
        <option value="一等">一等奖</option>
        <option value="二等">二等奖</option>
        <option value="三等">三等奖</option>
    </select></div>
    <div class="form"><h2>上传实践成果word版:</h2><input id="userfile" class="formfield" name="userfile" type="file" onmouseover="tips()" /></div>
    <div id="tips" class="form" style="font-size:12px; line-height:25px;"></div>
    <div class="form"><h2></h2><input class="formfieldbuttom" name="submit" type="submit" value="提交" /></div>
    </form>
    <div class="clear"></div>
</div>
<div><span style="color:#FF0000" >因服务器错误，请于9月5日前上传成果书的同学，重新上传成果书。<br />如果发现网页错误，请速速联系<a href="mailto:huangjin@content.org.cn">huangjin@content.org.cn</a></span></div>
<div id="footer">Powered by 康腾实践中心技术部</div>
</body>
</html>
